import http from '@/utils/fetch'

// 我的账户
export function myAccount() {
  return http.post('/Admin/Account/myAccount')
}
// 获取收款账户信息
export function getPayeeInfo() {
  return http.post('/Admin/Account/getPayeeInfo')
}
// 申请提现
export function withdrawalApply(amount) {
  return http.post('/Admin/Withdrawal/withdrawalApply', { amount }, true)
}
// 账户充值
export function recharge(amount) {
  return http.post('/Admin/Account/recharge', { amount })
}
// 提现详情
export function withdrawalInfo(withdrawal_id) {
  return http.get('/Admin/Withdrawal/withdrawalInfo', { withdrawal_id })
}
// 扫码结果查询
export function rechargeQuery(rechargeId) {
  return http.post('/Admin/Account/rechargeQuery', { rechargeId })
}

// 扫码结果查询
export function getAutoGetItem() {
  return http.get('/Admin/Account/getAutoGetItem')
}

// 扫码结果查询
export function setAutoGetItem(id) {
  return http.post('/Admin/Account/setAutoGetItem', { 'day_id': id })
}
